.class public Lcom/example/zsccpsapp/OrdertjActivity;
.super Landroid/app/Activity;
.source "OrdertjActivity.java"


# instance fields
.field private BuyerPhone:Ljava/lang/String;

.field private SellerPhone:Ljava/lang/String;

.field back_btn:Landroid/widget/ImageView;

.field btn_login:Landroid/widget/ImageView;

.field btnreg:Landroid/widget/ImageView;

.field dataarray:Lorg/json/JSONObject;

.field private dno:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private is_make:Ljava/lang/String;

.field private is_ping:Ljava/lang/String;

.field m:Lmyapp/MyApp;

.field private mPopupWindow:Landroid/widget/PopupWindow;

.field private mPopupWindowHeight:I

.field private mPopupWindowWidth:I

.field private mScreenHeight:I

.field private mScreenWidth:I

.field public mcontext:Landroid/content/Context;

.field private orderid:Ljava/lang/String;

.field private orderstatus:Ljava/lang/String;

.field pscost:Landroid/widget/LinearLayout;

.field pscostlist:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private pscostpopwidth:I

.field private psstatus:Ljava/lang/String;

.field private showlisttype:I

.field private titlename:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 59
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 61
    iput-object v1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->h:Landroid/os/Handler;

    .line 63
    iput-object v1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->m:Lmyapp/MyApp;

    .line 73
    iput v2, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostpopwidth:I

    .line 75
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostlist:Ljava/util/List;

    .line 82
    iput-object v1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->dataarray:Lorg/json/JSONObject;

    .line 83
    const-string v0, ""

    iput-object v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->BuyerPhone:Ljava/lang/String;

    .line 84
    const-string v0, ""

    iput-object v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->SellerPhone:Ljava/lang/String;

    .line 86
    iput-object v1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscost:Landroid/widget/LinearLayout;

    .line 87
    iput v2, p0, Lcom/example/zsccpsapp/OrdertjActivity;->showlisttype:I

    .line 88
    const-string v0, "\u5f53\u5929\u8ba2\u5355\u7edf\u8ba1"

    iput-object v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->titlename:Ljava/lang/String;

    .line 59
    return-void
.end method

.method static synthetic access$0(Lcom/example/zsccpsapp/OrdertjActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 66
    iget-object v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/zsccpsapp/OrdertjActivity;Landroid/widget/PopupWindow;)V
    .locals 0

    .prologue
    .line 66
    iput-object p1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    return-void
.end method

.method static synthetic access$2(Lcom/example/zsccpsapp/OrdertjActivity;)V
    .locals 0

    .prologue
    .line 161
    invoke-direct {p0}, Lcom/example/zsccpsapp/OrdertjActivity;->initpscostWindow()V

    return-void
.end method

.method static synthetic access$3(Lcom/example/zsccpsapp/OrdertjActivity;I)V
    .locals 0

    .prologue
    .line 73
    iput p1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostpopwidth:I

    return-void
.end method

.method static synthetic access$4(Lcom/example/zsccpsapp/OrdertjActivity;)I
    .locals 1

    .prologue
    .line 87
    iget v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->showlisttype:I

    return v0
.end method

.method static synthetic access$5(Lcom/example/zsccpsapp/OrdertjActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 88
    iget-object v0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->titlename:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$6(Lcom/example/zsccpsapp/OrdertjActivity;I)V
    .locals 0

    .prologue
    .line 87
    iput p1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->showlisttype:I

    return-void
.end method

.method static synthetic access$7(Lcom/example/zsccpsapp/OrdertjActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 88
    iput-object p1, p0, Lcom/example/zsccpsapp/OrdertjActivity;->titlename:Ljava/lang/String;

    return-void
.end method

.method private initpscostWindow()V
    .locals 9

    .prologue
    const/4 v8, 0x0

    .line 162
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v1

    .line 163
    .local v1, "layoutInflater":Landroid/view/LayoutInflater;
    const v6, 0x7f030015

    invoke-virtual {v1, v6, v8}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v2

    .line 164
    .local v2, "popupWindow":Landroid/view/View;
    const v6, 0x7f0b0055

    invoke-virtual {v2, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/LinearLayout;

    .line 167
    .local v3, "selectview":Landroid/widget/LinearLayout;
    const/4 v0, 0x0

    .local v0, "i":I
    :goto_0
    iget-object v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostlist:Ljava/util/List;

    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v6

    if-lt v0, v6, :cond_0

    .line 196
    invoke-virtual {p0}, Lcom/example/zsccpsapp/OrdertjActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mScreenWidth:I

    .line 197
    new-instance v6, Landroid/widget/PopupWindow;

    iget v7, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostpopwidth:I

    const/4 v8, -0x2

    invoke-direct {v6, v2, v7, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;II)V

    iput-object v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    .line 198
    invoke-virtual {p0}, Lcom/example/zsccpsapp/OrdertjActivity;->getWindowManager()Landroid/view/WindowManager;

    move-result-object v6

    invoke-interface {v6}, Landroid/view/WindowManager;->getDefaultDisplay()Landroid/view/Display;

    move-result-object v6

    invoke-virtual {v6}, Landroid/view/Display;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mScreenWidth:I

    .line 199
    iget-object v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getWidth()I

    move-result v6

    iput v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindowWidth:I

    .line 200
    iget-object v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindow:Landroid/widget/PopupWindow;

    invoke-virtual {v6}, Landroid/widget/PopupWindow;->getHeight()I

    move-result v6

    iput v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mPopupWindowHeight:I

    .line 201
    return-void

    .line 169
    :cond_0
    iget-object v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mcontext:Landroid/content/Context;

    const v7, 0x7f030014

    invoke-static {v6, v7, v8}, Landroid/view/View;->inflate(Landroid/content/Context;ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    .line 170
    .local v4, "tempview":Landroid/view/View;
    invoke-virtual {v4, v0}, Landroid/view/View;->setId(I)V

    .line 171
    const v6, 0x7f0b0054

    invoke-virtual {v4, v6}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/TextView;

    .line 172
    .local v5, "textView1":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostlist:Ljava/util/List;

    invoke-interface {v6, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Ljava/lang/CharSequence;

    invoke-virtual {v5, v6}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 173
    invoke-virtual {v3, v4, v0}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;I)V

    .line 174
    new-instance v6, Lcom/example/zsccpsapp/OrdertjActivity$5;

    invoke-direct {v6, p0}, Lcom/example/zsccpsapp/OrdertjActivity$5;-><init>(Lcom/example/zsccpsapp/OrdertjActivity;)V

    invoke-virtual {v4, v6}, Landroid/view/View;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 167
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .locals 7
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 91
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 92
    const v5, 0x7f030008

    invoke-virtual {p0, v5}, Lcom/example/zsccpsapp/OrdertjActivity;->setContentView(I)V

    .line 93
    iput-object p0, p0, Lcom/example/zsccpsapp/OrdertjActivity;->mcontext:Landroid/content/Context;

    .line 94
    invoke-virtual {p0}, Lcom/example/zsccpsapp/OrdertjActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v5

    check-cast v5, Lmyapp/MyApp;

    iput-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->m:Lmyapp/MyApp;

    .line 95
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v5}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 96
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 97
    invoke-virtual {p0}, Lcom/example/zsccpsapp/OrdertjActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    .line 99
    .local v2, "intent":Landroid/content/Intent;
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostlist:Ljava/util/List;

    const-string v6, "\u5f53\u5929\u8ba2\u5355\u7edf\u8ba1"

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 100
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostlist:Ljava/util/List;

    const-string v6, "\u672c\u5468\u8ba2\u5355\u7edf\u8ba1"

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 101
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscostlist:Ljava/util/List;

    const-string v6, "\u672c\u6708\u8ba2\u5355\u7edf\u8ba1"

    invoke-interface {v5, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 103
    const v5, 0x7f0b000c

    invoke-virtual {p0, v5}, Lcom/example/zsccpsapp/OrdertjActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/ImageView;

    iput-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->back_btn:Landroid/widget/ImageView;

    .line 104
    const/high16 v5, 0x7f0b0000

    invoke-virtual {p0, v5}, Lcom/example/zsccpsapp/OrdertjActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 105
    .local v3, "title_bar_name":Landroid/widget/TextView;
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->back_btn:Landroid/widget/ImageView;

    new-instance v6, Lcom/example/zsccpsapp/OrdertjActivity$1;

    invoke-direct {v6, p0}, Lcom/example/zsccpsapp/OrdertjActivity$1;-><init>(Lcom/example/zsccpsapp/OrdertjActivity;)V

    invoke-virtual {v5, v6}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 113
    const/4 v5, 0x1

    invoke-virtual {v3, v5}, Landroid/widget/TextView;->setSelected(Z)V

    .line 114
    const v5, 0x7f0b002f

    invoke-virtual {p0, v5}, Lcom/example/zsccpsapp/OrdertjActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    iput-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscost:Landroid/widget/LinearLayout;

    .line 115
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscost:Landroid/widget/LinearLayout;

    new-instance v6, Lcom/example/zsccpsapp/OrdertjActivity$2;

    invoke-direct {v6, p0}, Lcom/example/zsccpsapp/OrdertjActivity$2;-><init>(Lcom/example/zsccpsapp/OrdertjActivity;)V

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 130
    iget-object v5, p0, Lcom/example/zsccpsapp/OrdertjActivity;->pscost:Landroid/widget/LinearLayout;

    invoke-virtual {v5}, Landroid/widget/LinearLayout;->getViewTreeObserver()Landroid/view/ViewTreeObserver;

    move-result-object v4

    .line 131
    .local v4, "vto3":Landroid/view/ViewTreeObserver;
    new-instance v5, Lcom/example/zsccpsapp/OrdertjActivity$3;

    invoke-direct {v5, p0}, Lcom/example/zsccpsapp/OrdertjActivity$3;-><init>(Lcom/example/zsccpsapp/OrdertjActivity;)V

    invoke-virtual {v4, v5}, Landroid/view/ViewTreeObserver;->addOnPreDrawListener(Landroid/view/ViewTreeObserver$OnPreDrawListener;)V

    .line 139
    const v5, 0x7f0b0032

    invoke-virtual {p0, v5}, Lcom/example/zsccpsapp/OrdertjActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 140
    .local v1, "gototjlist":Landroid/widget/TextView;
    new-instance v5, Lcom/example/zsccpsapp/OrdertjActivity$4;

    invoke-direct {v5, p0}, Lcom/example/zsccpsapp/OrdertjActivity$4;-><init>(Lcom/example/zsccpsapp/OrdertjActivity;)V

    invoke-virtual {v1, v5}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 159
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 204
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 206
    invoke-virtual {p0}, Lcom/example/zsccpsapp/OrdertjActivity;->finish()V

    .line 210
    :cond_0
    return v1
.end method
